set_property BITSTREAM.CONFIG.USR_ACCESS TIMESTAMP [current_design]
set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design]

create_clock -period 8.138 -name clk_122p88 [get_ports clk_27dr_p]
#############################################################
##  io definition
#############################################################
set_property -dict {PACKAGE_PIN AL9 IOSTANDARD LVDS} [get_ports clk_27dr_p]
set_property -dict {PACKAGE_PIN AG15 IOSTANDARD LVDS} [get_ports fpga_fclk_156p25_p]
set_property -dict {PACKAGE_PIN AG17 IOSTANDARD LVDS} [get_ports sysref_fpga_p]

set_property DIFF_TERM_ADV TERM_100 [get_ports clk_27dr_p]
set_property DIFF_TERM_ADV TERM_100 [get_ports fpga_fclk_156p25_p]
set_property DIFF_TERM_ADV TERM_100 [get_ports sysref_fpga_p]

set_property PACKAGE_PIN B10 [get_ports o_fpga_spi0_sclk]
set_property PACKAGE_PIN A9 [get_ports o_fpga_spi0_mosi]

set_property PACKAGE_PIN C13 [get_ports o_hmc7044_spi_slen]
set_property PACKAGE_PIN B12 [get_ports o_hmc7044_spi_sclk]
set_property PACKAGE_PIN C14 [get_ports io_hmc7044_spi_sdata]

set_property PACKAGE_PIN E14 [get_ports o_lmx2594_a_spi1_sclk]
set_property PACKAGE_PIN H11 [get_ports o_lmx2594_b_spi1_sclk]
set_property PACKAGE_PIN K11 [get_ports o_lmx2594_c_spi1_sclk]
set_property PACKAGE_PIN D14 [get_ports o_lmx2594_a_spi1_mosi]
set_property PACKAGE_PIN K12 [get_ports o_lmx2594_b_spi1_mosi]
set_property PACKAGE_PIN K10 [get_ports o_lmx2594_c_spi1_mosi]
set_property PACKAGE_PIN F14 [get_ports o_lmx2594_a_spi1_ss]
set_property PACKAGE_PIN J12 [get_ports o_lmx2594_b_spi1_ss]
set_property PACKAGE_PIN J11 [get_ports o_lmx2594_c_spi1_ss]
set_property PACKAGE_PIN G13 [get_ports i_lmx2594_a_spi1_miso]
set_property PACKAGE_PIN H13 [get_ports i_lmx2594_b_spi1_miso]
set_property PACKAGE_PIN G12 [get_ports i_lmx2594_c_spi1_miso]

set_property PACKAGE_PIN A12 [get_ports i_int_adt7516]
set_property PACKAGE_PIN B13 [get_ports o_i2c_reset_b]
set_property PACKAGE_PIN D12 [get_ports i_hmc7044_gpio3]
set_property PACKAGE_PIN D13 [get_ports i_hmc7044_gpio2]
set_property PACKAGE_PIN A14 [get_ports i_hmc7044_gpio1]
set_property PACKAGE_PIN F12 [get_ports o_hmc7044_rst]
set_property PACKAGE_PIN E12 [get_ports o_hmc7044_sync]

set_property PACKAGE_PIN AF17 [get_ports i_id1]
set_property PACKAGE_PIN AF18 [get_ports i_id2]
set_property PACKAGE_PIN AF16 [get_ports i_id3]
set_property PACKAGE_PIN AE16 [get_ports i_id4]
set_property PACKAGE_PIN E11 [get_ports i_zynq2vu_done]
set_property PACKAGE_PIN E9 [get_ports i_vu_init_b]
set_property PACKAGE_PIN D11 [get_ports o_vu_prog_b]

set_property PACKAGE_PIN H15 [get_ports {gpio_led[2]}]
set_property PACKAGE_PIN H14 [get_ports {gpio_led[3]}]
set_property PACKAGE_PIN J14 [get_ports {gpio_led[4]}]
set_property PACKAGE_PIN K14 [get_ports {gpio_led[1]}]
set_property PACKAGE_PIN K15 [get_ports {gpio_led[0]}]

# set_property PACKAGE_PIN AG15 [get_ports fpga_fclk_156p25_p]
# set_property PACKAGE_PIN AG17 [get_ports sysref_fpga_p]


#############################################################

# set_property IOSTANDARD LVDS [get_ports sysref_fpga_p]
# set_property IOSTANDARD LVDS [get_ports fpga_fclk_156p25_p]

set_property IOSTANDARD LVCMOS18 [get_ports o_fpga_spi0_sclk]
set_property IOSTANDARD LVCMOS18 [get_ports o_fpga_spi0_mosi]

set_property IOSTANDARD LVCMOS33 [get_ports o_hmc7044_spi_slen]
set_property IOSTANDARD LVCMOS33 [get_ports o_hmc7044_spi_sclk]
set_property IOSTANDARD LVCMOS33 [get_ports io_hmc7044_spi_sdata]

set_property IOSTANDARD LVCMOS33 [get_ports o_lmx2594_a_spi1_sclk]
set_property IOSTANDARD LVCMOS18 [get_ports o_lmx2594_b_spi1_sclk]
set_property IOSTANDARD LVCMOS18 [get_ports o_lmx2594_c_spi1_sclk]
set_property IOSTANDARD LVCMOS33 [get_ports o_lmx2594_a_spi1_mosi]
set_property IOSTANDARD LVCMOS18 [get_ports o_lmx2594_b_spi1_mosi]
set_property IOSTANDARD LVCMOS18 [get_ports o_lmx2594_c_spi1_mosi]
set_property IOSTANDARD LVCMOS33 [get_ports o_lmx2594_a_spi1_ss]
set_property IOSTANDARD LVCMOS18 [get_ports o_lmx2594_b_spi1_ss]
set_property IOSTANDARD LVCMOS18 [get_ports o_lmx2594_c_spi1_ss]
set_property IOSTANDARD LVCMOS33 [get_ports i_lmx2594_a_spi1_miso]
set_property IOSTANDARD LVCMOS33 [get_ports i_lmx2594_b_spi1_miso]
set_property IOSTANDARD LVCMOS33 [get_ports i_lmx2594_c_spi1_miso]

set_property IOSTANDARD LVCMOS33 [get_ports i_int_adt7516]
set_property IOSTANDARD LVCMOS33 [get_ports o_i2c_reset_b]
set_property IOSTANDARD LVCMOS33 [get_ports i_hmc7044_gpio3]
set_property IOSTANDARD LVCMOS33 [get_ports i_hmc7044_gpio2]
set_property IOSTANDARD LVCMOS33 [get_ports i_hmc7044_gpio1]
set_property IOSTANDARD LVCMOS33 [get_ports o_hmc7044_rst]
set_property IOSTANDARD LVCMOS33 [get_ports o_hmc7044_sync]


set_property IOSTANDARD LVCMOS18 [get_ports i_id1]
set_property IOSTANDARD LVCMOS18 [get_ports i_id2]
set_property IOSTANDARD LVCMOS18 [get_ports i_id3]
set_property IOSTANDARD LVCMOS18 [get_ports i_id4]
set_property IOSTANDARD LVCMOS18 [get_ports i_zynq2vu_done]
set_property IOSTANDARD LVCMOS18 [get_ports i_vu_init_b]
set_property IOSTANDARD LVCMOS18 [get_ports o_vu_prog_b]
set_property IOSTANDARD LVCMOS33 [get_ports {gpio_led[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {gpio_led[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {gpio_led[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {gpio_led[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {gpio_led[4]}]


#############################################################
##  xdc define end
#############################################################


